package com.atguigu.gmall.product;


import com.atguigu.gmall.common.config.MybatisPlusConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Import;


/**
 * 为什么MyBatis-Plus能起来
 */

//@SpringBootApplication(scanBasePackages = "com.atguigu.gmall")
//@EnableDiscoveryClient
//@EnableCircuitBreaker
@SpringCloudApplication
@Import(MybatisPlusConfig.class) //单独导入MyBatis-Plus的配置
public class ProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(ProductApplication.class,args);

    }
}
